home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / sreadahead.postinst < prev    next >
Text File  |  2009-10-10  |  962b  |  45 lines

  1. #!/bin/sh -e
  2. # This script can be called in the following ways:
  3. #
  4. # After the package was installed:
  5. #    <postinst> configure <old-version>
  6. #
  7. # After a trigger is activated:
  8. #       <postinst> triggered <trigger-name>...
  9. #
  10. #
  11. # If prerm fails during upgrade or fails on failed upgrade:
  12. #    <old-postinst> abort-upgrade <new-version>
  13. #
  14. # If prerm fails during deconfiguration of a package:
  15. #    <postinst> abort-deconfigure in-favour <new-package> <version>
  16. #               removing <old-package> <version>
  17. #
  18. # If prerm fails during replacement due to conflict:
  19. #    <postinst> abort-remove in-favour <new-package> <version>
  20.  
  21.  
  22. case "$1" in
  23.     configure)
  24.     ;;
  25.  
  26.     triggered)
  27.     # Force a profile
  28.     if [ -f /var/lib/sreadahead/pack ]; then
  29.         echo "sreadahead will be reprofiled on next reboot"
  30.         rm -f /var/lib/sreadahead/pack
  31.     fi
  32.     ;;
  33.  
  34.     abort-upgrade|abort-deconfigure|abort-remove)
  35.     ;;
  36.  
  37.     *)
  38.     echo "$0 called with unknown argument \`$1'" 1>&2
  39.     exit 1
  40.     ;;
  41. esac
  42.  
  43.  
  44. exit 0
  45.